#ifndef VIDEOPAGE_H
#define VIDEOPAGE_H

#include <phonon/videoplayer.h>
#include <QWidget>
#include <QPushButton>


#include "mainwindow.h"
#include "video.h"

class VideoPage : public QWidget
{

    Q_OBJECT

public:
    VideoPage(QWidget*, Video*);
    ~VideoPage();

public slots:
    void playFile(QModelIndex index);
    void togglePlay();

private:
    Phonon::VideoPlayer *m_player;
    Video *m_video;
    QPushButton *m_playPauseButton;
};

#endif // VIDEOPAGE_H
